import hashlib

def get_file_md5(file_path):
    md5 = hashlib.md5()
    with open(file_path, 'rb') as f:
        for chunk in iter(lambda: f.read(4096), b''):
            md5.update(chunk)
    return md5.hexdigest()

# file_path = r'C:\Users\admin\Desktop\collecter\企业微信截图_17191990792130 - 副本.png'
# print(get_file_md5(file_path))
